﻿/*
 *Copyright(C) 2024 by RedPanda All rights reserved.
 *Unity版本：2022.3.50f1c1 
 *作者:程一峰  
 *创建日期: 2024-12-15 
 *版本: 0.1.0
*/

using Sirenix.OdinInspector;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.VFX;

namespace RedPanda
{
    /// <summary>
    /// VEG 测试模块；
    /// </summary>
    [RequireComponent(typeof(VisualEffect))]
    public class VEGTest : MonoBehaviour
    {

        private VisualEffect m_VisualEffect;
        public VisualEffect visualEffect
        {
            get
            {
                if (m_VisualEffect == null)
                    m_VisualEffect = GetComponent<VisualEffect>();
                return m_VisualEffect;
            }
        }

        private void Start()
        {

        }

        private void Update()
        {

        }

        [Button("测试")]
        private void TestMode()
        {
            List<string> L = new List<string>();
            visualEffect.GetSpawnSystemNames(L);
            foreach (string l in L)
            {
                Debug.Log(l);
            }

            Debug.Log($"aliveParticleCount : {visualEffect.aliveParticleCount}");

        }
    }
}